import { ElMessageBox } from "element-plus";
const FuncShowConfirmBox = (
  message: string,
  callback?: () => void,
  callback2?: () => void
) => {
  ElMessageBox.confirm(message, {
    confirmButtonText: "确定",
    cancelButtonText: "取消",
    type: "warning",
  })
    .then(() => {
      if (callback) callback();
    })
    .catch(() => {
      if (callback2) callback2();
    });
};
export default FuncShowConfirmBox;
